package classfile

/*
	CONSTANT_Class_info {
	    u1 tag;
	    u2 name_index;
	}
*/
type ConstantClassInfo struct {
	cp        ConstantPool
	NameIndex uint16
}

func (self *ConstantClassInfo) readInfo(reader *ClassReader) {
	self.NameIndex = reader.ReadUint16()
}
func (self *ConstantClassInfo) Name() string {
	return self.cp.GetUtf8(self.NameIndex)
}
